messagedialog: Don't initialize twice
authorMatthias Clasen <mclasen@redhat.com>
Thu, 4 Feb 2021 05:25:36 +0000 (00:25 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 4 Feb 2021 05:25:36 +0000 (00:25 -0500)
We don't need to set these fields more than once.

Pointed out in https://www.viva64.com/en/b/0793/

gtk/gtkmessagedialog.c

index faa100354ef3465ffe0c40d0efaa15fc558ebb1c..af61f8cb556ce42723c0066eeef21cb14fc728a7 100644 (file)
@@ -454,8 +454,6 @@ gtk_message_dialog_init (GtkMessageDialog *dialog)
   GtkSettings *settings;
   gboolean use_caret;
 
-  priv->has_primary_markup = FALSE;
-  priv->has_secondary_text = FALSE;
   priv->has_primary_markup = FALSE;
   priv->has_secondary_text = FALSE;
   priv->message_type = GTK_MESSAGE_OTHER;